cnblogs SimpleMemory Theme Beautification
所有内容来自marsggbo'github ,页面效果
页面定制CSS代码
由于js文件太长,点击链接获取。
博客侧边栏公告
<script type="text/javascript">
window.cnblogsConfig = {
GhVersions : 'v1.3.2', // 版本
blogUser : "WhaleFall541", // 用户名
blogAvatar : "https://images.cnblogs.com/cnblogs_com/whalefall541/1815978/t_200730122732u=251289958,1860898046&fm=26&gp=0.jpg?a=1596263261858", // 用户头像
blogStartDate : "2020-04-28", // 入园时间
// 标签聚焦 失焦显示字样
webpageTitleOnblur: '(o゚v゚)ノ Hi',
webpageTitleOnblurTimeOut: 500,
webpageTitleFocus: '(*´∇`*) Welcome Back!',
webpageTitleFocusTimeOut: 1000,
// 设置网站图标图片
webpageIcon: "https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@master/img/webp/blog_logo.webp",
// 日/夜间模式自动切换
switchDayNight: {
enable: true,
auto: {
enable: true
}
},
// 页面加载loading
loading: {
rebound: {
tension: 16,
},
spinner: {
id: 'spinner',
radius: 90,
}
},
// 是否渲染主页banner动效 以及配置动态效果
homeTopAnimationRendered: true,
homeTopAnimation: {
color : 'random',
},
// 是否渲染文章页banner动效 以及配置动态效果
essayTopAnimationRendered: true,
essayTopAnimation: {
triW : 14,
triH : 20,
},
// 是否渲染页面背景动效 以及配置动态效果
bgAnimationRendered: true,
backgroundAnimation: {
colorSaturation: "60%",
colorBrightness: "50%",
},
// 主页banner图片Url,推荐尺寸>= 1920*1080,支持多张,每次刷新随机设置一张。
homeTopImg: [
"https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@master/img/webp/home_top_bg.webp",
"https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@master/img/webp/home_top_bg.webp"
],
// 主页banner上的标语
homeBannerTextType: "one",
// 文章页banner图片Url,推荐尺寸>= 1920*600,支持 多张,每次刷新随机设置一张。
essayTopImg: [
"https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@master/img/webp/nothome_top_bg.webp",
"https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@master/img/webp/nothome_top_bg.webp"
],
// 文章页后缀
essaySuffix: {
aboutHtml: "I am a good person",
},
// 限制代码框高度,开启行号
codeMaxHeight: true,
codeLineNumber: true,
// 设置代码框字体样式
essayCode: {
fontFamily: "'Ubuntu Mono',monospace", // 代码框字体
fontSize: "14px" // 代码框字体大小
},
// 设置博客园代码块样式
essayCodeHighlightingType: "highlightjs",
essayCodeHighlighting: "monokai-sublime",
// 页脚样式
footerStyle: 1,
bottomBlogroll: [ // 友情链接,[[链接名,链接]....]
["申请坑位", 'https://msg.cnblogs.com/send/WhaleFall541'],
["申请坑位", 'https://msg.cnblogs.com/send/WhaleFall541'],
["申请坑位", 'https://msg.cnblogs.com/send/WhaleFall541'],
["申请坑位", 'https://msg.cnblogs.com/send/WhaleFall541'],
["申请坑位", 'https://msg.cnblogs.com/send/WhaleFall541'],
],
// 页脚标语
bottomText: {
icon: "❤️", // v1.3.0 已废弃该配置
iconFont: { // v1.3.0 新增配置
icon: "icon-xl", // iconfont 图标名称
color: "red", // 图标颜色
fontSize: "16px" // 图标大小
},
left : "年少有为",
right: "再喝一杯无所谓"
},
// 控制台输出
consoleList: [
['BNDong CNBlogs', 'https://www.cnblogs.com/whalefall541/'],
['BNDong GitHub', 'https://github.com/whalefall541'],
['BNDong Email', '905400899@qq.com'],
],
// 关闭广告
advertising: false,
// 版本映射
//isVersionMapping: true,
}
</script>
<script src="https://cdn.jsdelivr.net/gh/BNDong/Cnblogs-Theme-SimpleMemory@v1.3.2/src/script/simpleMemory.min.js"></script>
页首HTML代码
<!--鼠标点击效果-->
<script src="https://blog-static.cnblogs.com/files/e-cat/cursor-effects.js"></script>